home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / gnu / nethack.lha / nethack-3.1 / include / WindowP.h < prev    next >
C/C++ Source or Header  |  1993-01-17  |  1KB  |  61 lines

  1. /*    SCCS Id: @(#)WindowP.h    3.1    92/3/7    */
  2. /* Copyright (c) Dean Luick, 1992                  */
  3. /* NetHack may be freely redistributed.  See license for details. */
  4.  
  5. #ifndef _WindowP_h
  6. #define _WindowP_h
  7.  
  8. #include "Window.h"
  9. /* include superclass private header file */
  10. #include <X11/CoreP.h>
  11.  
  12. /* define unique representation types not found in <X11/StringDefs.h> */
  13.  
  14. #define XtRWindowResource "WindowResource"
  15.  
  16. typedef struct {
  17.     int empty;
  18. } WindowClassPart;
  19.  
  20. typedef struct _WindowClassRec {
  21.     CoreClassPart    core_class;
  22.     WindowClassPart    window_class;
  23. } WindowClassRec;
  24.  
  25. extern WindowClassRec windowClassRec;
  26.  
  27. typedef struct {
  28.     /* resources */
  29.     Dimension       rows;
  30.     Dimension       columns;
  31.     Pixel       foreground;
  32.     Pixel       black;
  33.     Pixel       red;
  34.     Pixel       green;
  35.     Pixel       brown;
  36.     Pixel       blue;
  37.     Pixel       magenta;
  38.     Pixel       cyan;
  39.     Pixel       gray;
  40.     Pixel       orange;
  41.     Pixel       bright_green;
  42.     Pixel       yellow;
  43.     Pixel       bright_blue;
  44.     Pixel       bright_magenta;
  45.     Pixel       bright_cyan;
  46.     Pixel       white;
  47.     XFontStruct       *font;
  48.     XtCallbackList expose_callback;
  49.     XtCallbackList input_callback;
  50.     XtCallbackList resize_callback;
  51.     /* private state */
  52.     /* (none) */
  53. } WindowPart;
  54.  
  55. typedef struct _WindowRec {
  56.     CorePart    core;
  57.     WindowPart    window;
  58. } WindowRec;
  59.  
  60. #endif /* _WindowP_h */
  61.